home *** CD-ROM | disk | FTP | other *** search
- Path: avalon.chinalake.navy.mil!usenet
- Newsgroups: comp.lang.c++
- Subject: char vs. unsigned char ???
- Message-ID: <DLGEKq.1zq@avalon.chinalake.navy.mil>
- From: sean harvey <charles_harvey@imdgw.chinalake.navy.mil>
- Date: Sat, 20 Jan 1996 00:26:48 GMT
- Sender: usenet@avalon.chinalake.navy.mil (NAWS news admin)
- Organization: OAO
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- Mime-Version: 1.0
- X-Mailer: Mozilla 1.1N (Macintosh; I; 68K)
- X-Url: news:comp.lang.c++
-
- I recently encorporated some functions from another program compiled and
- linked under an older version (Microsoft C version 6.0) into my program
- (MSVC 7.0).
-
- The alien code would not compile for me due, I guess to more rigorous
- type-checking.
-
- He used a lot of unsigned char strings that generated compile errors on
- calls to functions strlen, strcat and sprintf.
-
- So I changed his types to char and compiled cleanly but the program
- crashes and I think it may be due to the changes.
-
- The functions pass the data around and compress it to 6-bit ascii, among
- other things. Then I send it out via a modem.
-
- Somebody splain to me about unsigned char vs char please. Or any other
- input.
-
-
-